package com.sp.scmdb.service;

import java.util.List;
import java.util.Map;

import com.sp.scmdb.bean.OriginalBean;
import com.sp.scmdb.entity.Alarm;
import com.sp.scmdb.entity.AlarmType;
import com.sp.scmdb.entity.Area;
import com.sp.scmdb.entity.AreaData;
import com.sp.scmdb.entity.Employee;
import com.sp.scmdb.entity.EntryRecord;
import com.sp.scmdb.entity.His_Original;
import com.sp.scmdb.entity.LabelIO;
import com.sp.scmdb.entity.LabelReadingMachine;
import com.sp.scmdb.entity.Parameter;
import com.sp.scmdb.entity.Reader_Alarm;
import com.sp.scmdb.entity.RelEmpArea;

public interface ParseDataService {

	List<Area> queryRegional();

	List<Parameter> queryParameter(String Hql);

	@SuppressWarnings("unchecked")
	List findSql(String Sql);

	List<LabelReadingMachine> findReader();
	
	List<LabelReadingMachine> findReader(String hql);
	
	public void findReaderFault(LabelReadingMachine reader);

	List<Employee> findEmp(String Sql);

	List<LabelIO> queryLabel(String Hql);
	
	List<His_Original> findHisOriginal(String hql);
	
	public List<EntryRecord> findEntryRecord(String hql);
	public void updateEntryRecord(EntryRecord entryRecord);

	void saveAlarm(Alarm alarm);

	void updateAlarm(Alarm alarm);

	List<Alarm> alarmList(String Parameter);

	List<AreaData> findData(String Hql);

	List<AlarmType> alarmType();

	public boolean SingleTransaction(OriginalBean or,
			Map<String, LabelReadingMachine> mapReader, Map<Integer, AlarmType> mapAlarmType,
			List<Area> listArea);

	List<RelEmpArea> empAreaList(String Hql);

	public void delOriginalBean(OriginalBean or);

	List<Reader_Alarm> readerAlarm(String Hql);

	void saveReaderAlarm(Reader_Alarm ra);

	void updateReaderAlarm(Reader_Alarm ra);

	void removeLabelList();

	public boolean isOutCardRecord(int empID);
	
	public void execute(String sql);
}
